<?php

include_once('FavoritesService.php');


	if(isset($_POST['userId']) && !empty($_POST['userId'])
	   && isset($_POST['foodId']) && !empty($_POST['foodId'])
	   && isset($_POST['servingSize']) && !empty($_POST['servingSize'])){
		$savFav = new FavoritesService();

		$userId = $_POST['userId'];
		$foodId = $_POST['foodId'];
		$servingSize = $_POST['servingSize'];

		$results = $savFav->saveFav($userId, $foodId, $servingSize);
		print($results);
	}

?>